package pl.shenlon.poker.gui.testhands;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class TestHandFileFilter extends FileFilter {

	public static final String TEST_HAND_FILE_EXTENSION = "thf";
	@Override
	public boolean accept(File f) {
		return f.getName().toString().endsWith(TEST_HAND_FILE_EXTENSION)
				|| f.isDirectory();
	}

	@Override
	public String getDescription() {
		return "Pliki rąk testowych (.thf)";
	}

}